Xbasic
RTFMEMO.SET_FONT Function
Syntax
.SET_FONT( Font_Size_Style as C [, Color as C ] )
Arguments
- Font_Size_Style
The font, size, and style in the following format. Font, Size [, Style ] The options are as follows(or any combination of 2 or 3 options):
- "B" = bold
- "I" = italic
- "U" = underline
- Color
The color name.
Description
The .SET_FONT() method SETS the Font_and_Size at the current cursor location.
Example
dim obj as P obj = :Customer_Information:rtfmemofield.this obj.rtf.insert_text("This is RTF text") ? obj.rtf.get_font() = "courier,15," obj.rtf.set_cursor(20) obj.rtf.set_font("Verdana,10","Red") ? obj.rtf.get_font() = "Verdana,10,"
Limitations
Desktop applications only.
See Also